<template>
	<view class='box'>
		<view class="sun">
			<image src="../../static/sun.png" alt="" class='sunbody'>
			<image src="../../static/eye.png" alt="" class='eye'>
		</view>
		<text class="tip">loading...</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	page {
		background-color:#f4c042;
		height: 100%;
	}
	.box{
		width:306rpx;
		height: 113rpx;
		margin:300rpx auto 0;
		background:url(../../static/1.png) no-repeat left bottom;
		background-size:contain;
		position: relative;
	}
	.sun{
		width:136rpx;
		height: 136rpx;
		position: absolute;
		left:0;
		right:0;
		margin:0 auto;
		z-index: -1;
		animation: move 2.7s infinite linear;
	}
	.sun .eye{
		position: absolute;
		top:28%;
		left:33%;
		width: 22rpx;
		height: 6rpx;
		animation: eye 2.7s infinite linear;
	}
	.sun .sunbody{
		width: 136rpx;
		height: 136rpx;
		animation: scroll 2.7s linear infinite;
	}
	.box .tip{
		text-align: center;
		padding: 0 100rpx;
		font-family: '苹方';
		font-size:25rpx;
		color:#7a5600;
		animation: opp 2.7s infinite linear;
	}
	@keyframes move{
		0%{
			transform: translateY(0);
		}
		10%{
			transform: translateY(0);
		}
		40%{
			transform: translateY(-55rpx);
		}
		70%{
			transform: translateY(-55rpx);
		}
		100%{
			transform: translateY(0);
		}
	}
	@keyframes scroll{
		0%{
			transform: rotate(0);
		}
		40%{
			transform: rotate(0);
		}
		50%{
			transform: rotate(45deg);
		}
		60%{
			transform: rotate(45deg);
		}
		100%{
			transform: rotate(45deg);
		}
	}
	@keyframes eye{
		0%{
			transform: translateX(0rpx);
		}
		50%{
			transform: translateX(0rpx) scale(1,1);
		}
		55%{
			transform: translateX(0rpx) scale(1,0.1);
		}
		60%{
			transform: translateX(0rpx) scale(1);
		}
		70%{
			transform: translateX(26rpx);
		}
		100%{
			transform: translateX(26rpx);
		}
	}
	@keyframes opp{
		0%{
			opacity: 1;
		}
		40%{
			opacity: 1;
		}
		60%{
			opacity: 0;
		}
		100%{
			opacity: 1;
		}
	}
</style>
